﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WatiN.Core;
using WatiN.Core.Native;

namespace WatiN.Sharepoint
{
    /// <summary>
    /// Control that 'captures' the <th> html-element.
    /// </summary>
    /// <remarks> 
    ///     Assumption: the th-element is equal to the td-element. 
    ///     Therefore the TableHeaderCell is derived from <see cref="TableCell"/>
    ///     The <see cref="ElementTagAttribute"/> attribute is added to add WatiN support for the th-element.
    ///     See http://watinandmore.blogspot.com/2009/03/custom-elements-and-controls-in-watin.html
    /// </remarks>
    [ElementTag("th")]
    public class TableHeaderCell : TableCell
    {
        public TableHeaderCell(DomContainer domContainer, ElementFinder elementFinder) : base(domContainer, elementFinder)
        {}

        public TableHeaderCell(DomContainer domContainer, INativeElement htmlTableCell) : base(domContainer, htmlTableCell)
        {

        }
    }
}
